########################################################################
#  Pyfm - personal finance data-base
#  Copyright (C) 2007,8 Ehud Ben-Reuven
#  udi@benreuven.com
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation version 2.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
########################################################################
"""This is a wrapper that add tools commands.
"""

from imports.mycmd import MyCmdImports
import modeltools
import modelfix
import modelreport
import expense

# Set the default model used to flat line
import tagsyntax
import obj.flat
obj.flat.tagtype_syntax=tagsyntax # TODO ugly

class MyCmdTools(MyCmdImports):
    do_f=modelfix.do_f
    
    do_mt=modeltools.do_mt
    do_mhst=modeltools.do_mhst
    do_ms=modeltools.do_ms
    do_me=expense.do_me

    do_cs=modelreport.do_cs
    do_cd=modelreport.do_cd

    do_rt=modelreport.do_rt
    do_rs=modelreport.do_rs
    do_rp=modelreport.do_rp
    do_rug=modelreport.do_rug
    do_rrg=modelreport.do_rrg
    do_re=expense.do_re

    
if __name__=='__main__': MyCmdTools().cmdloop()
